#ifndef BUDGET_PLANNER_H__
#define BUDGET_PLANNER_H__
#include "Budget.h"

using namespace std;

class BudgetPlanner{

 private:
	 double timeframe;
	 double totalbudget;
	 Budget cat[7];
	 void errorhandler();
	 void realloc(double difference, int categ, int p, double proportion);

  
 public:

	 BudgetPlanner();

	 BudgetPlanner(Budget foodIn, Budget transportationIn, Budget accomodationIn, Budget academicsIn, Budget recreationIn, Budget debtsIn, Budget othersIn);
	 void settimeframe(int tf);
	 void setdetails(int i);
	 //edit delete works the same way
	 void add(int categ, double change, double numdays);
	 void view();	 

};

#endif // BUDGET_PLANNER_H__
